<template>
	<view>

		<!-- @click="gotoInfo(key)" -->
		<view v-if="StudentStatusInfo!=0">
			<view v-for="(value,key) in StudentStatusInfo" :key="key">
				<statusItem :ColorType="value.status" :StudentFindPass="value"></statusItem>
			</view>
		</view>
		<view v-else>
			<nodataView></nodataView>
		</view>
	</view>
</template>

<script>
	import statusItem from './statusItemChild/statusItem.vue'
	import nodataView from '@/components/nodataView/nodataView.vue'
	import {
		getStudentStatusInfoByTid
	} from '@/api/status/service.js';

	export default {
		props: {
			StudentStatusInfo: {
				type: Array,
				default: []

			}
		},
		data() {
			return {
				// StudentStatusInfo:[],
				tId: 0
			}
		},
		components: {
			statusItem,
			nodataView
		},

		onLoad() {
			console.log("onLoad");

		},
		init() {
			// console.log("aaaa1");
			// this.loadData();
		},
		created() {
			console.log("created");
			this.tId = uni.getStorageSync("Teaid")
			// this.loadData()
		},
		methods: {
			// loadData() {
			// 	console.log("lllll", this.tId);
			// 	getStudentStatusInfoByTid(this.tId)
			// 		.then(res => {
			// 			this.StudentStatusInfo = res.data.list
			// 			console.log(this.StudentStatusInfo)
			// 			console.log(res)
			// 		}).catch(res => {
			// 			console.log(res)
			// 		})
			// }
		}
	}
</script>

<style>

</style>
